package com.minshenglife.zanzan.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.minshenglife.commons.dal.EntityDao;
import com.minshenglife.commons.dal.MyBatisRepository;
import com.minshenglife.zanzan.entity.WorkCon;
import com.minshenglife.zanzan.result.WorkConResult;


/**
 * DAO
 * 
 * @author huodd
 * @date 2014.07.04
 */
@Repository
@MyBatisRepository
public interface WorkConDao extends EntityDao<WorkCon>{

	Long countByParams(Map<String, Object> map);

	List<WorkConResult> findWorkConList(Map<String, Object> map);

	Long countWorkConViewList(Map<String, Object> map);
	
	List<WorkConResult> findWorkConViewList(Map<String, Object> map);
	
	Long countWorkConViewListOfDow(Map<String, Object> map);
	
	List<WorkConResult> findWorkConViewListOfDow(Map<String, Object> map);

	Long countWorkConSpecialCareList(Map<String, Object> map);

	List<WorkConResult> findWorkConSpecialCareList(Map<String, Object> map);
	
	List<WorkCon> findWorkConListOfDate(Map<String, Object> map);

	List<WorkConResult> findWorkConMarketList(Map<String, Object> map);

	Long countWorkConMarketViewListOfDow(Map<String, Object> map);

	List<WorkConResult> findWorkConMarketViewListOfDow(Map<String, Object> map);

	Long countWorkConViewListOfSearch(Map<String, Object> map);

	List<WorkConResult> findWorkConViewListOfSearch(Map<String, Object> map);
	
	void updateReviewAndComment(Map<String,Object> map);
}
